409
|
How can I display a different caption in the label area

with thisform.ComboBox1
.BeginUpdate
.Style = 2
.IntegralHeight = .T.
.HeaderVisible = .F.
.SingleEdit = .T.
.SearchColumnIndex = -1
.AdjustSearchColumn = .F.
.Columns.Add("Language").Def(0) = .T.
with .Items
.AddItem("English")
.AddItem("Hebrew")
.AddItem("Spanish")
endwith
.LabelText = " <b>custom</b> text "
.EndUpdate
endwith
|
160
|
How can I display a custom size picture to a cell or item

with thisform.ComboBox1
.DefaultItemHeight = 48
.Columns.Add("C1")
with .Items
.CellPicture(.AddItem("Text"),0) = thisform.ComboBox1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
endwith
endwith
|
210
|
How can I display a computed column and highlight some values that are negative or less than a value

with thisform.ComboBox1
.Columns.Add("A")
.Columns.Add("B")
.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19"
with .Items
.CellCaption(.AddItem(1),1) = 2
endwith
with .Items
.CellCaption(.AddItem(10),1) = 20
endwith
var_ConditionalFormat = .ConditionalFormats.Add("%2 > 10")
with var_ConditionalFormat
.Bold = .T.
.ForeColor = RGB(255,0,0)
.ApplyTo = 2 && 0x2
endwith
endwith
|
276
|
How can I display a button inside the item or cell

with thisform.ComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = " Button 1 "
.CellHAlignment(h,1) = 2
.CellHasButton(h,1) = .T.
h = .AddItem("Cell 2")
.CellCaption(h,1) = " Button 2 "
.CellHAlignment(h,1) = 1
.CellHasButton(h,1) = .T.
endwith
endwith
|
203
|
How can I customize the items being displayed in the drop down filter window

with thisform.ComboBox1
with .Columns.Add("Custom Filter")
.DisplayFilterButton = .T.
.DisplayFilterPattern = .F.
var_s = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.t"
var_s = var_s + "xt|*.log"
.CustomFilter = var_s
.FilterType = 3
.Filter = "*.xls"
endwith
.Items.AddItem("excel.xls")
.Items.AddItem("word.doc")
.Items.AddItem("pp.pps")
.Items.AddItem("text.txt")
.ApplyFilter
endwith
|
549
|
How can I create a new ADO recordset

with thisform.ComboBox1
.BeginUpdate
rs = CreateObject("ADODB.Recordset")
with rs
.Fields.Append("A",8)
.Fields.Append("B",8)
.Open()
.AddNew()
.Fields.Item("A").Value = "Item A.1"
.Fields.Item("B").Value = "Item B.1"
.Update()
.AddNew()
.Fields.Item("A").Value = "Item A.2"
.Fields.Item("B").Value = "Item B.2"
.Update()
endwith
.DataSource = rs
.Value = "Item A.1"
.EndUpdate
endwith
|
372
|
How can I convert the expression to a string so I can look into the date string expression for month's name

with thisform.ComboBox1
.Columns.Add("Number")
.Columns.Add("Str").ComputedField = "str(%0) + ' AA'"
with .Items
.AddItem("-1.98")
.AddItem("0.99")
.AddItem("1.23")
.AddItem("2.34")
endwith
endwith
|
427
|
How can I collapse all items

with thisform.ComboBox1
.BeginUpdate
.LinesAtRoot = -1
.Columns.Add("Items")
with .Items
h = .AddItem("Root 1")
.InsertItem(h,Null,"Child 1")
.InsertItem(h,Null,"Child 2")
h = .AddItem("Root 2")
.InsertItem(h,Null,"Child 1")
.InsertItem(h,Null,"Child 2")
.ExpandItem(0) = .F.
endwith
.EndUpdate
endwith
|
340
|
How can I close the drop down window when user double clicks it

with thisform.ComboBox1
.CloseOnDblClk = .T.
.LinesAtRoot = 1
.TreeColumnIndex = 1
.Columns.Add("Column 1")
.Columns.Add("Column 2")
with .Items
h = .AddItem("Root 1.1")
.CellCaption(h,1) = "Root 1.2"
.CellCaption(.InsertItem(h,Null,"Child 1.1"),1) = "Child 1.2"
.CellCaption(.InsertItem(h,Null,"Child 2.1"),1) = "Child 2.2"
.ExpandItem(h) = .T.
h = .AddItem("Root 2.1")
.CellCaption(h,1) = "Root 2.2"
.CellCaption(.InsertItem(h,Null,"Child 1.1"),1) = "Child 1.2"
endwith
endwith
|
384
|
How can I check the hour part only so I know it was afternoon

with thisform.ComboBox1
.ConditionalFormats.Add("hour(%0)>=12").Bold = .T.
.Columns.Add("Date")
.Columns.Add("Hour").ComputedField = "hour(%0)"
with .Items
.AddItem({^2001-1-11 10:00:00})
.AddItem({^2002-2-22 11:00:00})
.AddItem({^2003-3-13 12:00:00})
.AddItem({^2004-4-14 13:00:00})
endwith
endwith
|
4
|
How can I change/rename the column's name

with thisform.ComboBox1
.Columns.Add("ColumnName").Caption = "NewName"
endwith
|
134
|
How can I change the width of the columns being displayed in the sort bar

with thisform.ComboBox1
.SortBarVisible = .T.
.SortBarColumnWidth = 48
.Columns.Add("C1").SortOrder = 1
.Columns.Add("C2").SortOrder = 2
endwith
|
510
|
How can I change the visual appearance of the filter bar's close button (solid)

with thisform.ComboBox1
.BeginUpdate
.Columns.Add("Item").DisplayFilterButton = .T.
with .Columns.Add("Pos")
.AllowSizing = .F.
.AllowSort = .F.
.Width = 32
.FormatColumn = "1 apos ``"
.Position = 0
endwith
with .Items
.AddItem("Item A")
.AddItem("Item B")
.AddItem("Item C")
endwith
.FilterBarPromptVisible = 1
.Object.Background(1) = RGB(255,0,0)
.EndUpdate
endwith
|
511
|
How can I change the visual appearance of the filter bar's close button (EBN)

with thisform.ComboBox1
.BeginUpdate
with .VisualAppearance
var_s = "gBFLBCJwBAEHhEJAAEhABHQDg6AADACAxRDgMQBQKAAzAJBIYhiG4cYCgMZhXDOCYXABCEYRXBIZQ7BKNIxjSJ5BhIAAyDSJMjSRJUEhqGCWYDleYYYAKHIMQLOg7IJj"
var_s = var_s + "yI4/SJAYCydKAWhxIaZKJHCZoEDaTAADCNVAQp6MEIJVbVEI0e79OgBLp/Z7kECIJJAaRjHQdJxGLA8EhtCQhCZteK6SgMKJYXhWQYRXI1JwvMBrWrdQjiOYELQtMKmS"
var_s = var_s + "ZNLYGG4dR5SVJbcYhSYsRRFMoyDIOXYDLKsdYqSpXIThObEGgaPqJYjsUjCMKnR7HVIURrBPC9TBPE69ZgmC6ucKPX51ShKFaBWDZc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wwYjyASLge4FhHgRDkM8OQih0jWPkGgBBAQ"
.Add(1,var_s)
endwith
.Columns.Add("Item").DisplayFilterButton = .T.
with .Columns.Add("Pos")
.AllowSizing = .F.
.AllowSort = .F.
.Width = 32
.FormatColumn = "1 apos ``"
.Position = 0
endwith
with .Items
.AddItem("Item A")
.AddItem("Item B")
.AddItem("Item C")
endwith
.FilterBarPromptVisible = 257 && FilterBarVisibleEnum.exFilterBarToggle Or FilterBarVisibleEnum.exFilterBarPromptVisible
.Object.Background(1) = 0x1000000
.EndUpdate
endwith
|
131
|
How can I change the visual appearance of the control's sort bar, using EBN files

with thisform.ComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.SortBarVisible = .T.
.BackColorSortBar = 0x1000000
.BackColorSortBarCaption = 0x2000000
.Appearance = 0
endwith
|
499
|
How can I change the visual appearance of the +/- buttons, open/close glyphs as current visual theme (method 3)

with thisform.ComboBox1
.BeginUpdate
with .VisualAppearance
var_s = "gBFLBCJwBAEHhEJAAEhABDwCg6AADACAxRDgMQBQKAAzAJBIYhiG4cYCgMZhXDOCYXABCEYRXBIZQ7BKNIxjSJ5BhIAAyDSJMjSRJUEhqGCWYDleYYYAKHIMQLJQKQSB"
var_s = var_s + "cQR9EaBZBAWTpQC0OJDTJRI4TNAgbSYAAYRqoCb6loTKypaxjCQQIgkUBpGKdBynEYsDwSGyJCCJWyIbpKAwoVbcs4AYhuJpaQi+d5PFbjVT8dLAMBwLA8EwXAJ+OpfD"
var_s = var_s + "xXU7eFKpR5fchXTI8UxXFqXZhkeQrfh7KYVRBKdBQRBEFQPJqnahqOpaXo2RoLUJKcQwHTmHYNQTALyuTALZrWeZ3XrgN74LbtZzVQauYRpbCMEr6bpoWLnFi6Ho1U4l"
var_s = var_s + "lWah1jqSweFqfxPgQQRphi+Yak0YIuqUfJegef4zluaJ3nqPJeCYH4BAeX5TDLBpVGqKRRnwf4flefZtHsX54B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+BghFgRIegOCgYCySAgh4CAkgINAMmMNIgCcCYjn4LoLmMCJGDKC5ijIagoDMYhCAoJg1A0IxEhsJgJFiThChCY5yFYPA0GOGIYloNhNGIaIXCUJACE4TwkEkchOF"
var_s1 = var_s1 + "SFYlFkXhUCUCQZEYTglCSMxaEkYJIBmFJhDeDZZEYPwlgmQhghaGqVDoa4bGaeY6FGGZNlmFIBGEJ4jhiZQ5AkMhAg6E5JCkRoGCUSQ6B6CYiSCBIOh+DhJmmARiWQOJ"
var_s1 = var_s1 + "tDsCJSCSBwkXSLIRicaZ6HqIIomoIguhwIpphIHoWDsJ4mCGChpmqOpGheLIOkqUo2iya4DjGJxihiQoSj4IJaDaMpCjCWoGg6PgpBiQ4tHcQJQBAgI="
.Add(4,var_s1)
.Add(2,"CP:4 -2 -2 2 2")
endwith
.LinesAtRoot = 1
.HasButtons = 4
.Object.HasButtonsCustom(0) = 16777216
.Object.HasButtonsCustom(1) = 33554432
.Columns.Add("Column")
with .Items
h = .AddItem("Root 1")
.InsertItem(h,Null,"Child 1")
.InsertItem(h,Null,"Child 2")
.ExpandItem(h) = .T.
h = .AddItem("Root 2")
.InsertItem(h,Null,"Child")
endwith
.EndUpdate
endwith
|
498
|
How can I change the visual appearance of the +/- buttons, open/close glyphs as current visual theme (method 2)

with thisform.ComboBox1
.BeginUpdate
with .VisualAppearance
.Add(1,"XP:TREEVIEW 2 1")
.Add(2,"XP:TREEVIEW 2 2")
endwith
.Object.Background(180) = 0x1000000
.Object.Background(181) = 0x2000000
.LinesAtRoot = -1
.Columns.Add("Column")
with .Items
h = .AddItem("Root 1")
.InsertItem(h,Null,"Child 1")
.InsertItem(h,Null,"Child 2")
.ExpandItem(h) = .T.
h = .AddItem("Root 2")
.InsertItem(h,Null,"Child")
endwith
.EndUpdate
endwith
|
496
|
How can I change the visual appearance of the +/- buttons (method 1)

with thisform.ComboBox1
.BeginUpdate
with .VisualAppearance
var_s = "gBFLBCJwBAEHhEJAAEhABDwCg6AADACAxRD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_s1 = var_s1 + "cQR9EaBZBAWTpQC0OJDTJRI4TNAgbSYAAYRqoCb6loTKypaxjCQQIgkUBpGKdBynEYsDwSGyJCCJWyIbpKAwoVbcs4AYhuJpaQi+d5PFbjVT8dLAMBwLA8EwXAJ+OpfD"
var_s1 = var_s1 + "xXU7eFKpR5fchXTI8UxXFqXZhkeQrfh7KYVRBKdBQRBEFQPJqnahqOpaXo2RoLUJKcQwHTmHYNQTALyuTALZrWeZ3XrgN74LbtZzVQauYRpbCMEr6bpoWLnFi6Ho1U4l"
var_s1 = var_s1 + "lWah1jqSweFqfxPgQQRphi+Yak0YIuqUfJeg8X4rluaZ3niGB+AQHx/EyShjjEVYqiUR5rnmex/GAB5+AIf4gEeXJFHyXZ3gCTAygyAociMKBKEKBIeCiCZyHYFAnCEe"
var_s1 = var_s1 + "Bkh+BghFgRIegOCgYCySAgh4CAkgINAMmMNIgCcCYjn4LoLmMCJGDKC5ijIagoDMYhCAoJg1A0IxEhsJgJFiThChCY5yFYPA0GOGIYloNhNGIaIXCUJACE4TwkEkchOF"
var_s1 = var_s1 + "SFYlFkXhUCUCQZEYTglCSMxaEkYJIBmFJhDeDZZEYPwlgmQhghaGqVDoa4bGaeY6FGGZNlmFIBGEJ4jhiZQ5AkMhAg6E5JCkRoGCUSQ6B6CYiSCBIOh+DhJmmARiWQOJ"
var_s1 = var_s1 + "tDsCJSCSBwkXSLIRicaZ6HqIIomoIguhwIpphIHoWDsJ4mCGChpmqOpGheLIOkqUo2iya4DjGJxihiQoSj4IJaDaMpCjCWoGg6PgpBiQ4tHcQJQBAgI="
.Add(2,var_s1)
endwith
.LinesAtRoot = -1
.Object.Background(180) = 0x1000000
.Object.Background(181) = 0x2000000
.Columns.Add("Column")
with .Items
h = .AddItem("Root 1")
.InsertItem(h,Null,"Child 1")
.InsertItem(h,Null,"Child 2")
.ExpandItem(h) = .T.
h = .AddItem("Root 2")
.InsertItem(h,Null,"Child")
endwith
.EndUpdate
endwith
|
275
|
How can I change the state of a radio button

with thisform.ComboBox1
.MarkSearchColumn = .F.
.SelBackColor = RGB(255,255,128)
.SelForeColor = RGB(0,0,0)
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Radio 1"
.CellHasRadioButton(h,1) = .T.
.CellRadioGroup(h,1) = 1234
.CellCaption(h,2) = "Radio 2"
.CellHasRadioButton(h,2) = .T.
.CellRadioGroup(h,2) = 1234
.CellState(h,1) = 1
endwith
endwith
|
273
|
How can I change the state of a checkbox

with thisform.ComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Check Box"
.CellHasCheckBox(h,1) = .T.
.CellState(h,1) = 1
endwith
endwith
|
132
|
How can I change the sort bar's foreground color

with thisform.ComboBox1
.SortBarVisible = .T.
.ForeColorSortBar = RGB(255,0,0)
endwith
|
130
|
How can I change the sort bar's background color

with thisform.ComboBox1
.SortBarVisible = .T.
.BackColorSortBar = RGB(255,0,0)
.BackColorSortBarCaption = RGB(128,0,0)
endwith
|
289
|
How can I change the size ( width, height ) of the picture

with thisform.ComboBox1
.Columns.Add("Default")
with .Items
h = .AddItem("Root 1")
.CellPicture(h,0) = thisform.ComboBox1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.CellPictureWidth(h,0) = 24
.CellPictureHeight(h,0) = 24
.ItemHeight(h) = 32
h = .AddItem("Root 2")
.CellPicture(h,0) = thisform.ComboBox1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.ItemHeight(h) = 48
endwith
endwith
|
32
|
How can I change the position of the column

with thisform.ComboBox1
.Columns.Add("Column 1")
.Columns.Add("Column 2").Position = 0
endwith
|
298
|
How can I change the position of an item

with thisform.ComboBox1
.Columns.Add("Default")
with .Items
.AddItem("Item 1")
.AddItem("Item 2")
.ItemPosition(.AddItem("Item 3")) = 0
endwith
endwith
|
202
|
How can I change the order or the position of the columns in the sort bar

with thisform.ComboBox1
.SortBarVisible = .T.
.SortBarColumnWidth = 48
.Columns.Add("C1").SortOrder = 1
.Columns.Add("C2").SortOrder = 2
.Columns.Item("C2").SortPosition = 0
endwith
|
48
|
How can I change the name of the week days in the drop down calendar window, being displayed when I filter items between dates

with thisform.ComboBox1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.DisplayFilterDate = .T.
endwith
.Object.Description(18) = "Du Lu Ma Mi Jo Vi Si"
.ApplyFilter
endwith
|
47
|
How can I change the name of the months in the drop down calendar window, being displayed when I filter items between dates

with thisform.ComboBox1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.DisplayFilterDate = .T.
endwith
.Object.Description(17) = "Janvier F vrier Mars Avril Mai Juin Juillet Ao t Septembre Octobre Novembre D cembre"
.ApplyFilter
endwith
|
133
|
How can I change the height of the sort bar's

with thisform.ComboBox1
.SortBarVisible = .T.
.SortBarHeight = 48
endwith
|
252
|
How can I change the height for all items

with thisform.ComboBox1
.DefaultItemHeight = 32
.Columns.Add("Column")
.Items.AddItem("One")
.Items.AddItem("Two")
endwith
|
124
|
How can I change the header's background color, when multiple levels are displayed

with thisform.ComboBox1
.BackColorLevelHeader = RGB(250,0,0)
.Columns.Add("S").Width = 32
.Columns.Add("Level 1").LevelKey = 1
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
endwith
|
344
|
How can I change the foreground color for edit controls

with thisform.ComboBox1
.ForeColorEdit = RGB(255,0,0)
.IntegralHeight = .T.
.LinesAtRoot = 1
.TreeColumnIndex = 1
.Columns.Add("Column 1")
.Columns.Add("Column 2")
with .Items
h = .AddItem("Root 1.1")
.CellCaption(h,1) = "Root 1.2"
.CellCaption(.InsertItem(h,Null,"Child 1.1"),1) = "Child 1.2"
.CellCaption(.InsertItem(h,Null,"Child 2.1"),1) = "Child 2.2"
.ExpandItem(h) = .T.
h = .AddItem("Root 2.1")
.CellCaption(h,1) = "Root 2.2"
.CellCaption(.InsertItem(h,Null,"Child 1.1"),1) = "Child 1.2"
endwith
.Object.Select(0) = "Root 1.1"
endwith
|
215
|
How can I change the foreground color for all cells in the column

with thisform.ComboBox1
var_ConditionalFormat = .ConditionalFormats.Add("1")
with var_ConditionalFormat
.ForeColor = RGB(255,0,0)
.ApplyTo = 0
endwith
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
endwith
|
424
|
How can I change the foreground color for a particular column

with thisform.ComboBox1
with .Columns
.Add("Column 1")
.Add("Column 2").Def(8) = 8439039
.Add("Column 3")
endwith
endwith
|
300
|
How can I change the font for entire item
with thisform.ComboBox1
.Columns.Add("Default")
.Items.AddItem("default font")
f = CreateObject("StdFont")
with f
.Name = "Tahoma"
.Size = 12
endwith
with .Items
.ItemFont(.AddItem("new font")) = f
endwith
endwith
|
217
|
How can I change the font for all cells in the entire column

with thisform.ComboBox1
f = CreateObject("StdFont")
with f
.Name = "Tahoma"
.Size = 12
endwith
with .ConditionalFormats.Add("1")
.Font = f
.ApplyTo = 0
endwith
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
endwith
|
302
|
How can I change the font for a cell

with thisform.ComboBox1
.Columns.Add("Default")
.Items.AddItem("std font")
with .Items
.CellCaptionFormat(.AddItem("this <font tahoma;12>is a bit of text with</font> a different font"),0) = 1
endwith
endwith
|
301
|
How can I change the font for a cell

with thisform.ComboBox1
.Columns.Add("Default")
.Items.AddItem("default font")
f = CreateObject("StdFont")
with f
.Name = "Tahoma"
.Size = 12
endwith
with .Items
.CellFont(.AddItem("new font"),0) = f
endwith
endwith
|
129
|
How can I change the default caption being displayed in the control's sort bar

with thisform.ComboBox1
.SortBarVisible = .T.
.SortBarCaption = "new caption"
endwith
|
95
|
How can I change the control's font

with thisform.ComboBox1
.Font.Name = "Tahoma"
.Columns.Add("Column")
endwith
|
13
|
How can I change the column's width

with thisform.ComboBox1
.ColumnAutoResize = .F.
.Columns.Add("Column 1").Width = 64
.Columns.Add("Column 2").Width = 128
endwith
|
455
|
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column

with thisform.ComboBox1
.BeginUpdate
.MarkSearchColumn = .F.
with .ConditionalFormats.Add("1")
.Bold = .T.
.ForeColor = RGB(255,0,0)
.ApplyTo = 1 && 0x1
endwith
.Columns.Add("C1")
with .Columns.Add("C2")
.HeaderBold = .T.
.HTMLCaption = "<fgcolor=FF0000>C2"
endwith
with .Items
.CellCaption(.AddItem(10),1) = 11
.CellCaption(.AddItem(12),1) = 13
endwith
.EndUpdate
endwith
|
314
|
How can I change the color for separator / dividers items

with thisform.ComboBox1
.MarkSearchColumn = .F.
.TreeColumnIndex = -1
.ScrollBySingleLine = .F.
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."
.CellSingleLine(h,1) = .F.
h = .AddItem()
.ItemDivider(h) = 0
.ItemDividerLine(h) = 4
.ItemDividerLineAlignment(h) = 1
.ItemHeight(h) = 6
.SelectableItem(h) = .F.
h = .AddItem("Cell 2")
.CellCaption(h,1) = "This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."
.CellSingleLine(h,1) = .F.
endwith
endwith
|
359
|
How can I change the background color or the visual appearance using ebn for a particular column

with thisform.ComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
with .Columns
.Add("Column 1")
.Add("Column 2").Def(7) = 16777216
.Add("Column 3").Def(7) = 16777471
.Add("Column 4")
endwith
endwith
|
407
|
How can I change the background color for the filter field in the bottom part of the drop down portion

with thisform.ComboBox1
.BeginUpdate
.FilterForVisible = .T.
.FilterForBackColor = RGB(240,240,240)
.IntegralHeight = .T.
.Columns.Add("Default")
with .Items
.AddItem("Item 1")
.AddItem("Item 2")
.AddItem("Item 3")
.AddItem("Item 4")
.AddItem("Item 5")
endwith
.EndUpdate
endwith
|
343
|
How can I change the background color for edit controls

with thisform.ComboBox1
.BackColorEdit = RGB(255,0,0)
.IntegralHeight = .T.
.LinesAtRoot = 1
.TreeColumnIndex = 1
.Columns.Add("Column 1")
.Columns.Add("Column 2")
with .Items
h = .AddItem("Root 1.1")
.CellCaption(h,1) = "Root 1.2"
.CellCaption(.InsertItem(h,Null,"Child 1.1"),1) = "Child 1.2"
.CellCaption(.InsertItem(h,Null,"Child 2.1"),1) = "Child 2.2"
.ExpandItem(h) = .T.
h = .AddItem("Root 2.1")
.CellCaption(h,1) = "Root 2.2"
.CellCaption(.InsertItem(h,Null,"Child 1.1"),1) = "Child 1.2"
endwith
.Object.Select(0) = "Root 1.1"
endwith
|
216
|
How can I change the background color for all cells in the column

with thisform.ComboBox1
var_ConditionalFormat = .ConditionalFormats.Add("1")
with var_ConditionalFormat
.BackColor = RGB(255,0,0)
.ApplyTo = 0
endwith
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
endwith
|
358
|
How can I change the background color for a particular column

with thisform.ComboBox1
with .Columns
.Add("Column 1")
.Add("Column 2").Def(7) = 8439039
.Add("Column 3")
endwith
endwith
|
423
|
How can I change the background color for a particular column

with thisform.ComboBox1
with .Columns
.Add("Column 1")
.Add("Column 2").Def(7) = 8439039
.Add("Column 3")
endwith
endwith
|
408
|
How can I change the background appearance (ebn) for the filter field in the bottom part of the drop down portion

with thisform.ComboBox1
.BeginUpdate
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.FilterForVisible = .T.
.FilterForBackColor = 0x1000000
.IntegralHeight = .T.
.Columns.Add("Default")
with .Items
.AddItem("Item 1")
.AddItem("Item 2")
.AddItem("Item 3")
.AddItem("Item 4")
.AddItem("Item 5")
endwith
.EndUpdate
endwith
|
50
|
How can I change the "IsChecked/IsUnchecked" caption in the control's filter bar, when I filter for checked items

with thisform.ComboBox1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.FilterType = 6
.Filter = 0
endwith
.Object.Description(21) = "Check_On"
.Object.Description(22) = "Check_Off"
.ApplyFilter
endwith
|
35
|
How can I change the "Filter For" caption in the column's drop down filter window

with thisform.ComboBox1
.Columns.Add("Column").DisplayFilterButton = .T.
.Object.Description(3) = "new caption"
endwith
|
49
|
How can I change the "Checked" caption in the drop down filter window, when I filter for checked items

with thisform.ComboBox1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.FilterType = 6
endwith
.Object.Description(19) = "with check on"
.Object.Description(20) = "with check off"
endwith
|
231
|
How can I change at runtime the parent of the item

with thisform.ComboBox1
.LinesAtRoot = -1
.Columns.Add("Default")
with .Items
hP = .AddItem("Root")
hC = .AddItem("Child")
.SetParent(hC,hP)
endwith
endwith
|
57
|
How can I can I select programmatically "Blanks/NonBlanks" option in the column's drop down filter

with thisform.ComboBox1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.FilterType = 1
endwith
.ApplyFilter
endwith
|
61
|
How can I can I programmatically filter the checked items

with thisform.ComboBox1
with .Columns.Add("Column")
.Def(0) = .T.
.DisplayFilterButton = .T.
.FilterType = 6
.Filter = 0
endwith
.Items.AddItem(0)
with .Items
.CellState(.AddItem(1),0) = 1
endwith
.Items.AddItem(2)
.ApplyFilter
endwith
|
62
|
How can I can I programmatically filter for items with a specified icon assigned

with thisform.ComboBox1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.FilterType = 10
.Filter = 1
endwith
with .Items
.CellImage(.AddItem("Image 1"),0) = 1
.CellImage(.AddItem("Image 1"),0) = 1
.CellImage(.AddItem("Image 2"),0) = 2
.CellImage(.AddItem("Image 3"),0) = 3
endwith
.ApplyFilter
endwith
|
60
|
How can I can I filter programmatically the items based on some numerichal rules

with thisform.ComboBox1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.FilterType = 5
.Filter = "> 0 <= 1"
endwith
.Items.AddItem(0)
.Items.AddItem(1)
.Items.AddItem(2)
.ApplyFilter
endwith
|
59
|
How can I can I filter programmatically the items based on a range/interval of dates

with thisform.ComboBox1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.DisplayFilterDate = .T.
.FilterType = 4
.Filter = "1/1/2001 to 1/1/2002"
endwith
.Items.AddItem("1/1/2001")
.Items.AddItem("2/1/2002")
.ApplyFilter
endwith
|
58
|
How can I can I filter programmatically given a specified pattern using wild characters like * or

with thisform.ComboBox1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.FilterType = 3
.Filter = "0*"
endwith
.Items.AddItem(0)
.Items.AddItem("00")
.Items.AddItem(1)
.Items.AddItem("11")
.ApplyFilter
endwith
|
555
|
How can I build a "virtual" tree using your control

*** BeforeExpandItem event - Fired before an item is about to be expanded (collapsed). ***
LPARAMETERS Item, Cancel
with thisform.ComboBox1
with .Items
.ItemHasChildren(.InsertItem(Item,Null,"new")) = .T.
endwith
endwith
with thisform.ComboBox1
.BeginUpdate
.LinesAtRoot = -1
.Style = 1
.Columns.Add("Def")
with .Items
.AddItem("Item 1")
.ItemHasChildren(.AddItem("Item 2")) = .T.
.AddItem("Item 3")
endwith
.Value = "Item 2"
.EndUpdate
endwith
|
363
|
How can I bold the items that contains data or those who displays empty strings

with thisform.ComboBox1
.ConditionalFormats.Add("not len(%1)=0").Bold = .T.
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Root")
.InsertItem(h,Null,"Child 1")
hC = .InsertItem(h,Null,"Child 2")
.CellCaption(hC,1) = "1"
.InsertItem(h,Null,"Child 3")
.ExpandItem(h) = .T.
endwith
endwith
|
211
|
How can I bold the entire column

with thisform.ComboBox1
var_ConditionalFormat = .ConditionalFormats.Add("1")
with var_ConditionalFormat
.Bold = .T.
.ApplyTo = 0
endwith
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
endwith
|
25
|
How can I bold only a portion of the column's header

with thisform.ComboBox1
.Columns.Add("Column 1").HTMLCaption = "<b>Col</b>umn 1"
endwith
|
269
|
How can I associate an extra data to a cell

with thisform.ComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Cell 2"
.CellData(h,1) = "your extra data"
endwith
endwith
|
280
|
How can I assign multiple icons/pictures to a cell

with thisform.ComboBox1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.Columns.Add("Default")
with .Items
h = .AddItem("Root <img>1</img> 1, <img>2</img>, ... and so on ")
.CellCaptionFormat(h,0) = 1
endwith
endwith
|
279
|
How can I assign multiple icons/pictures to a cell

with thisform.ComboBox1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.Columns.Add("Default")
with .Items
h = .AddItem("Root 1")
.CellImages(h,0) = "1,2,3"
endwith
endwith
|
282
|
How can I assign multiple icon/picture to a cell

with thisform.ComboBox1
.Object.HTMLPicture("p1") = "c:\exontrol\images\zipdisk.gif"
.Object.HTMLPicture("p2") = "c:\exontrol\images\auction.gif"
.Columns.Add("Default")
with .Items
h = .AddItem("text <img>p1</img> another picture <img>p2</img> and so on")
.CellCaptionFormat(h,0) = 1
.CellPicture(h,0) = thisform.ComboBox1.ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)")
.ItemHeight(h) = 48
.AddItem("Root 2")
endwith
endwith
|
14
|
How can I assign checkboxes for the entire column

with thisform.ComboBox1
.Columns.Add("Column 1").Def(0) = .T.
.Items.AddItem(0)
.Items.AddItem(1)
.Items.AddItem(2)
endwith
|
281
|
How can I assign an icon/picture to a cell

with thisform.ComboBox1
.Columns.Add("Default")
with .Items
h = .AddItem("Root 1")
.CellPicture(h,0) = thisform.ComboBox1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.ItemHeight(h) = 48
.AddItem("Root 2")
endwith
endwith
|
278
|
How can I assign an icon/picture to a cell

with thisform.ComboBox1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.Columns.Add("Default")
with .Items
h = .AddItem("Root 1")
.CellImage(h,0) = 1
.CellImage(.InsertItem(h,Null,"Child 1"),0) = 2
.CellImage(.InsertItem(h,Null,"Child 2"),0) = 3
.ExpandItem(h) = .T.
endwith
endwith
|
270
|
How can I assign a tooltip to a cell

with thisform.ComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "tooltip"
.CellToolTip(h,1) = "This is bit of text that's shown when the user hovers the cell"
endwith
endwith
|
274
|
How can I assign a radio button to a cell

with thisform.ComboBox1
.MarkSearchColumn = .F.
.SelBackColor = RGB(255,255,128)
.SelForeColor = RGB(0,0,0)
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Radio 1"
.CellHasRadioButton(h,1) = .T.
.CellRadioGroup(h,1) = 1234
.CellCaption(h,2) = "Radio 2"
.CellHasRadioButton(h,2) = .T.
.CellRadioGroup(h,2) = 1234
.CellState(h,1) = 1
endwith
endwith
|
16
|
How can I assign a different background color for the entire column

with thisform.ComboBox1
.MarkSearchColumn = .F.
.Columns.Add("Column 1").Def(4) = 255
.Columns.Add("Column 2")
.Items.AddItem(0)
.Items.AddItem(1)
.Items.AddItem(2)
endwith
|
272
|
How can I assign a checkbox to a cell

with thisform.ComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Check Box"
.CellHasCheckBox(h,1) = .T.
endwith
endwith
|
15
|
How can I assign a check box for a cell

with thisform.ComboBox1
.Columns.Add("Column 1")
with .Items
.AddItem(0)
.CellHasCheckBox(.AddItem(1),0) = .T.
.AddItem(2)
endwith
endwith
|
30
|
How can I apply an strikeout font only a portion of the column's header

with thisform.ComboBox1
.Columns.Add("Column 1").HTMLCaption = "<s>Col</s>umn 1"
endwith
|
27
|
How can I apply an italic font only a portion of the column's header

with thisform.ComboBox1
.Columns.Add("Column 1").HTMLCaption = "<i>Col</i>umn 1"
endwith
|
353
|
How can I align the text/caption on the scroll bar

with thisform.ComboBox1
.Object.ScrollPartCaption(1,512) = "left"
.Object.ScrollPartCaptionAlignment(1,512) = 0
.Object.ScrollPartCaption(1,128) = "right"
.Object.ScrollPartCaptionAlignment(1,128) = 2
.ColumnAutoResize = .F.
.Columns.Add(1)
.Columns.Add(2)
.Columns.Add(3)
.Columns.Add(4)
.Columns.Add(5)
.Columns.Add(6)
endwith
|
183
|
How can I align the icon in the column's header in the center

with thisform.ComboBox1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
with .Columns.Add("")
.HeaderImage = 1
.HeaderImageAlignment = 1
endwith
endwith
|
177
|
How can I align the column to the right, and its caption too

with thisform.ComboBox1
with .Columns.Add("Column")
.Alignment = 2
.HeaderAlignment = 2
endwith
.Items.AddItem(0)
.Items.AddItem(1)
endwith
|
176
|
How can I align the column to the right

with thisform.ComboBox1
.Columns.Add("Column").Alignment = 2
.Items.AddItem(0)
.Items.AddItem(1)
endwith
|
304
|
How can I align the cell to the left, center or to the right

with thisform.ComboBox1
.TreeColumnIndex = -1
.DrawGridLines = -2
.Columns.Add("Default")
with .Items
.CellHAlignment(.AddItem("left"),0) = 0
.CellHAlignment(.AddItem("center"),0) = 1
.CellHAlignment(.AddItem("right"),0) = 2
endwith
endwith
|
135
|
How can I add several columns to control's sort bar

with thisform.ComboBox1
.SortBarVisible = .T.
.SortBarColumnWidth = 48
.Columns.Add("C1").SortOrder = 1
.Columns.Add("C2").SortOrder = 2
endwith
|
313
|
How can I add separator - dividers items

with thisform.ComboBox1
.MarkSearchColumn = .F.
.TreeColumnIndex = -1
.ScrollBySingleLine = .F.
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."
.CellSingleLine(h,1) = .F.
h = .AddItem()
.ItemDivider(h) = 0
.ItemDividerLine(h) = 4
.ItemDividerLineAlignment(h) = 1
.ItemHeight(h) = 6
.SelectableItem(h) = .F.
h = .AddItem("Cell 2")
.CellCaption(h,1) = "This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."
.CellSingleLine(h,1) = .F.
endwith
endwith
|
226
|
How can I add or insert child items

with thisform.ComboBox1
.LinesAtRoot = -1
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Cell 2"
.CellCaption(.InsertItem(h,Null,"Cell 3"),1) = "Cell 4"
.CellCaption(.InsertItem(h,Null,"Cell 5"),1) = "Cell 6"
.ExpandItem(h) = .T.
endwith
endwith
|
223
|
How can I add or insert an item

with thisform.ComboBox1
.Columns.Add("Default")
.Items.AddItem("new item")
endwith
|
224
|
How can I add or insert an item

with thisform.ComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
.CellCaption(.AddItem("Cell 1"),1) = "Cell 2"
h = .AddItem("Cell 3")
.CellCaption(h,1) = "Cell 4"
endwith
endwith
|
225
|
How can I add or insert a child item

with thisform.ComboBox1
.LinesAtRoot = -1
.Columns.Add("Default")
with .Items
.InsertItem(.AddItem("root"),Null,"child")
endwith
endwith
|
464
|
How can I add or change the padding (spaces) for captions in the control's header

with thisform.ComboBox1
.BeginUpdate
.Columns.Add("Padding-Left").Def(52) = 18
with .Columns.Add("Padding-Right")
.Def(53) = 18
.HeaderAlignment = 2
endwith
.EndUpdate
endwith
|
3
|
How can I add multiple columns

with thisform.ComboBox1
with .Columns
.Add("Column 1")
.Add("Column 2")
endwith
endwith
|
465
|
How can I add a vertical padding

with thisform.ComboBox1
.BeginUpdate
.DrawGridLines = -1
with .Columns.Add("Padding")
.Def(0) = .T.
.Def(16) = .F.
.Def(48) = 6
.Def(49) = 6
.Def(50) = 6
.Def(51) = 6
endwith
with .Items
.AddItem("padding")
.AddItem("padding")
endwith
.EndUpdate
endwith
|
1
|
How can I add a new column

with thisform.ComboBox1
.Columns.Add("ColumnName")
endwith
|
454
|
How can I add a horizontal scroll bar

with thisform.ComboBox1
.BeginUpdate
.ScrollBySingleLine = .T.
.ColumnAutoResize = .F.
.BackColorAlternate = RGB(240,240,240)
with .Columns.Add("Default")
.Width = 512
.Def(16) = .F.
endwith
with .Items
var_s = "Exontrol is devoted to create innovative user interface components for Windows applications, on COM or .NET platforms, since 199"
var_s = var_s + "9. "+chr(34)+"eXontrol"+chr(34)+" comes from e(s)pecial (c)ontrol, where sc makes the X. We are a vendor not a reseller, and this is the single site"
var_s = var_s + " where you can try or buy our products. If you are tired of looking for "+chr(34)+"powerful"+chr(34)+" components now it's time to show you real com"
var_s = var_s + "ponents. No registration required, no nag screens, no limitations, unlimited evaluation time."
.AddItem(var_s)
var_s1 = "A combo box is a commonly-used GUI tool. It is a combination of a drop-down list or list box and a single-line textbox, allowing"
var_s1 = var_s1 + " the user either to type a value directly into the control or choose from the list of existing options."
.AddItem(var_s1)
endwith
.EndUpdate
endwith
|
221
|
How can I access the properties of a column

with thisform.ComboBox1
.Columns.Add("A")
.Columns.Item("A").HeaderBold = .T.
endwith
|
595
|
Highlight the parent items

with thisform.ComboBox1
.BeginUpdate
.ConditionalFormats.Add("%CC0").ForeColor = RGB(255,0,0)
.HeaderAppearance = 4
.HeaderHeight = 24
.LinesAtRoot = -1
with .Columns
.Add("Item").Width = 16
.Add("Desc")
endwith
with .Items
hR = .AddItem("Root")
.CellCaption(hR,1) = "The root directory /"
h = .InsertItem(hR,Null,"Home")
.CellCaption(h,1) = "The home directory with user directories Alice and Bob"
.InsertItem(h,Null,"Alice")
.InsertItem(h,Null,"Bob")
.ExpandItem(h) = .T.
h = .InsertItem(hR,Null,"Etc")
.CellCaption(h,1) = "The etc directory with one configuration file"
h = .InsertItem(h,Null,"nginx.conf")
.CellCaption(.InsertItem(hR,Null,"Var"),1) = "The var directory"
.ExpandItem(hR) = .T.
endwith
.EndUpdate
endwith
|
596
|
Highlight the leaf items

with thisform.ComboBox1
.BeginUpdate
.ConditionalFormats.Add("%CC0=0").ForeColor = RGB(128,128,128)
.HeaderAppearance = 4
.HeaderHeight = 24
.LinesAtRoot = -1
with .Columns
.Add("Item").Width = 16
.Add("Desc")
endwith
with .Items
hR = .AddItem("Root")
.CellCaption(hR,1) = "The root directory /"
h = .InsertItem(hR,Null,"Home")
.CellCaption(h,1) = "The home directory with user directories Alice and Bob"
.InsertItem(h,Null,"Alice")
.InsertItem(h,Null,"Bob")
.ExpandItem(h) = .T.
h = .InsertItem(hR,Null,"Etc")
.CellCaption(h,1) = "The etc directory with one configuration file"
h = .InsertItem(h,Null,"nginx.conf")
.CellCaption(.InsertItem(hR,Null,"Var"),1) = "The var directory"
.ExpandItem(hR) = .T.
endwith
.EndUpdate
endwith
|
594
|
Highlight the item being expanded or collapsed

with thisform.ComboBox1
.BeginUpdate
.ConditionalFormats.Add("%CX0").Bold = .T.
.HeaderAppearance = 4
.HeaderHeight = 24
.LinesAtRoot = -1
with .Columns
.Add("Item").Width = 16
.Add("Desc")
endwith
with .Items
hR = .AddItem("Root")
.CellCaption(hR,1) = "The root directory /"
h = .InsertItem(hR,Null,"Home")
.CellCaption(h,1) = "The home directory with user directories Alice and Bob"
.InsertItem(h,Null,"Alice")
.InsertItem(h,Null,"Bob")
.ExpandItem(h) = .T.
h = .InsertItem(hR,Null,"Etc")
.CellCaption(h,1) = "The etc directory with one configuration file"
h = .InsertItem(h,Null,"nginx.conf")
.CellCaption(.InsertItem(hR,Null,"Var"),1) = "The var directory"
.ExpandItem(hR) = .T.
endwith
.EndUpdate
endwith
|
589
|
Force hover-all feature
with thisform.ComboBox1
.Object.Background(500) = -1
endwith
|
515
|
FilterBarCaption Predefined Keywords

*** AfterExpandItem event - Fired after an item is expanded (collapsed). ***
LPARAMETERS Item
with thisform.ComboBox1
.Refresh
endwith
with thisform.ComboBox1
.BeginUpdate
.LinesAtRoot = -1
.Columns.Add("Item").DisplayFilterButton = .T.
with .Columns.Add("Check")
.Def(0) = .T.
.DisplayFilterButton = .T.
.DisplayFilterPattern = .F.
.FilterType = 6
endwith
with .Columns.Add("Pos")
.AllowSizing = .F.
.AllowSort = .F.
.Width = 32
.FormatColumn = "1 apos ``"
.Position = 0
endwith
with .Items
.AddItem("Item A")
h = .AddItem("Item B")
.CellState(.InsertItem(h,Null,"Sub-Item B1"),1) = 1
.InsertItem(h,Null,"Sub-Item B2")
.ExpandItem(h) = .T.
.AddItem("Item C")
endwith
.FilterInclude = 1
.FilterBarFont = .Font
var_s = "`<fgcolor=0000FF><i>value/current</i></fgcolor>: <fgcolor=808080>` + value + `</fgcolor>` + `<br><fgcolor=0000FF><i>available</i"
var_s = var_s + "></fgcolor>: ` + available + `<br><fgcolor=0000FF><i>allui</i></fgcolor>: ` + allui + `<br><fgcolor=0000FF><i>all</i></fgcolor>:"
var_s = var_s + " ` + all + `<br><fgcolor=0000FF><i>itemcount</i></fgcolor>: <fgcolor=808080>` + itemcount + `</fgcolor>`+ `<br><fgcolor=0000FF><"
var_s = var_s + "i>visibleitemcount</i></fgcolor>: <fgcolor=808080>` + visibleitemcount + `</fgcolor>`+ `<br><fgcolor=0000FF><i>matchitemcount</i"
var_s = var_s + "></fgcolor>: <fgcolor=808080>` + matchitemcount + `</fgcolor>`+ `<br><fgcolor=0000FF><i>promptpattern</i></fgcolor>: <fgcolor=80"
var_s = var_s + "8080>` + promptpattern + `</fgcolor>`+ `<br><fgcolor=0000FF><i>leafitemcount</i></fgcolor>: <fgcolor=808080>` + leafitemcount + "
var_s = var_s + "`</fgcolor>`"
.FilterBarCaption = var_s
.FilterBarPromptPattern = "B"
.FilterBarPromptVisible = 7 && FilterBarVisibleEnum.exFilterBarCaptionVisible Or FilterBarVisibleEnum.exFilterBarVisible Or FilterBarVisibleEnum.exFilterBarPromptVisible
with .Columns.Item(0)
.FilterType = 240
.Filter = "Item A|Item B"
endwith
.ApplyFilter
.EndUpdate
endwith
|